#Boa:Frame:FrameProfitDelivery

import wx
from MyListCtrl import *

def create(parent):
    return FrameProfitDelivery(parent)

[wxID_FRAMEPROFITDELIVERY] = [wx.NewId() for _init_ctrls in range(1)]

class FrameProfitDelivery(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAMEPROFITDELIVERY,
              name=u'FrameProfitDelivery', parent=prnt, pos=wx.Point(419, 89),
              size=wx.Size(972, 592), style=wx.DEFAULT_FRAME_STYLE,
              title=u'\u914d\u9001\u5355\u5229\u6da6')
        self.SetClientSize(wx.Size(956, 554))
        self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Arial'))
        self.SetBackgroundColour(wx.Colour(183, 209, 173))

    def __init__(self, parent):
        self._init_ctrls(parent)

        self.proList = MyListCtrlProductProfitReport(self)
        self.proList.Move(wx.Point(10, 10))
        self.proList.SetSize(wx.Size(700, 400))

    def setData(self, plan_id):
        self.proList.refresh({"delivery_plan":plan_id})
